﻿using Newtonsoft.Json.Converters;
using PluginInterface;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace IotClientApp.Shared
{
    public class DeviceParamModel
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public int Address { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        //public DataTypeEnum DataType { get; set; }
        public short DataType { get; set; }

        /// <summary>
        /// 大小端
        /// </summary>
        //public EndianEnum EndianType { get; set; }
        public short EndianType { get; set; }
        /// <summary>
        /// 表达式
        /// </summary>
        public string Expressions { get; set; }
        public string Value { get; set; }
        public object CookedValue { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime Timestamp { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public VaribaleStatusTypeEnum StatusType { get; set; } = VaribaleStatusTypeEnum.UnKnow;
        public DateTime CreateTime { get; set; }
        public string DataTypeName { get; set; } = "";
        public string EndianTypeName { get; set; }
        public string Desc { get; set; }
        public string DeviceId { get; set; }
        public string ReadWrite { get; set; }
        public string ReadWriteName { get; set; }
    }
}
